package com.music.biz.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.music.biz.UserRoleBiz;
import com.music.dao.UserRoleDao;
import com.music.entity.UserRole;
@Service("userRoleBiz")
public class UserRoleBizImpl implements UserRoleBiz {

	@Autowired
	private UserRoleDao userRoleDao;
	
	public List<UserRole> getAll() {
		return userRoleDao.getAll();
	}

	public UserRole getRoleById(int id) {
		
		return userRoleDao.getRoleById(id);
	}

}
